package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户关系对象 spff_user_relations
 * 
 * @author xjj
 * @date 2025-09-11
 */
public class SpffUserRelations extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关系ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 目标用户ID */
    @Excel(name = "目标用户ID")
    private Long targetUserId;

    /** 关系类型:1-关注,2-拉黑 */
    @Excel(name = "关系类型:1-关注,2-拉黑")
    private Integer relationType;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date createdAt;

    /** 用户昵称（非数据库字段） */
    private String userNickname;

    /** 目标用户昵称（非数据库字段） */
    private String targetUserNickname;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setTargetUserId(Long targetUserId) 
    {
        this.targetUserId = targetUserId;
    }

    public Long getTargetUserId() 
    {
        return targetUserId;
    }

    public void setRelationType(Integer relationType) 
    {
        this.relationType = relationType;
    }

    public Integer getRelationType() 
    {
        return relationType;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUserNickname(String userNickname) 
    {
        this.userNickname = userNickname;
    }

    public String getUserNickname() 
    {
        return userNickname;
    }

    public void setTargetUserNickname(String targetUserNickname) 
    {
        this.targetUserNickname = targetUserNickname;
    }

    public String getTargetUserNickname() 
    {
        return targetUserNickname;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("targetUserId", getTargetUserId())
            .append("relationType", getRelationType())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
